package cn.ffcs.uec.staff.manager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.uec.staff.dao.UecFamilyDao;
import cn.ffcs.uec.staff.manager.UecFamilyManager;
import cn.ffcs.uec.staff.model.UecFamily;
import cn.ffcs.uec.staffAndOutStaff.vo.StaffAndOutStaff;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("uecFamilyManager")
@Scope("prototype")
public class UecFamilyManagerImpl implements UecFamilyManager {

	@Resource
	private UecFamilyDao uecFamilyDao;

	@Override
	public PageInfo queryPageInfoByUecFamily(UecFamily uecFamily, int current,
			int pageSize) {
		return uecFamilyDao.queryPageInfoByUecFamily(uecFamily, current, pageSize);
	}

	@Override
	public UecFamily queryUecFamilyById(UecFamily uecFamily) {
		return uecFamilyDao.queryUecFamilyById(uecFamily);
	}

	@Override
	public PageInfo queryPageInfoByUecFamilyOnApproval(UecFamily uecFamily,
			int current, int pageSize) {
		return uecFamilyDao.queryPageInfoByUecFamilyOnApproval(uecFamily, current, pageSize);
	}

	@Override
	public List<UecFamily> getUecFamilyListByPkpsndoc(StaffAndOutStaff uecOutStaffInfo) {
		// TODO Auto-generated method stub
		return uecFamilyDao.getUecFamilyListByPkpsndoc(uecOutStaffInfo);
	}

}
